/* 全局变量 */
:root {
    --primary-color: #409EFF;
    --success-color: #67C23A;
    --warning-color: #E6A23C;
    --danger-color: #F56C6C;
    --info-color: #909399;
    --background-color: #f5f5f5;
    --border-color: #e4e7ed;
}

/* 全局样式重置 */
body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
}

/* 主要布局 */
.header {
    background: linear-gradient(135deg, #409EFF 0%, #1890ff 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title h1 {
    margin: 0;
    font-size: 1.8rem;
}

.header-title p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 导航菜单样式 */
.header-nav {
    display: flex !important;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-menu {
    display: flex !important;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
}

.nav-item.active {
    background: rgba(255,255,255,0.2);
    color: white;
    font-weight: 500;
}

.nav-item i {
    font-size: 1rem;
    margin-right: 0.25rem;
}

/* 语言切换器样式 */
.language-switcher {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 0.5rem;
}

.language-switcher .el-select {
    width: 120px;
}

.language-switcher .el-input__inner {
    background: transparent;
    border: none;
    color: white;
}

.language-switcher .el-input__inner::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.language-switcher .el-select__caret {
    color: white;
}

/* 语言按钮样式 */
.language-switcher .language-button {
    color: white !important;
    border: none !important;
    background: transparent !important;
    padding: 0.5rem 1rem !important;
}

.language-switcher .language-button:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.language-switcher .language-button:focus {
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.language-switcher .language-icon,
.language-switcher .language-text {
    color: white !important;
}

.language-switcher .el-icon {
    color: white !important;
}

.container {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 卡片样式 */
.stats-card {
    margin-bottom: 1rem;
}

.strategy-table {
    margin-top: 1rem;
}

/* 实时日志样式 */
.real-time-log {
    height: 300px;
    overflow-y: auto;
    background: var(--background-color);
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.log-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.log-time {
    color: var(--info-color);
    font-weight: 500;
}

.log-type {
    font-weight: bold;
    margin: 0 0.5rem;
}

.log-message {
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
}

/* 版权声明样式 */
.footer {
    background: #f8f9fa;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    padding: 1rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.copyright {
    margin: 0;
    color: var(--info-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 交易图表入口样式 */
.trading-chart-entry {
    margin: 1rem 0;
}

.chart-entry-card {
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.chart-entry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.chart-entry-content {
    padding: 2rem;
}

.chart-entry-content h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.chart-entry-content p {
    margin: 0 0 1.5rem 0;
    color: var(--info-color);
    font-size: 1rem;
}

/* 页面头部样式 */
.page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.page-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 1rem;
}